<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>

</body>
<script src="https://cdn.bootcss.com/axios/0.19.0-beta.1/axios.js"></script>
<script>
    var obj = {
        password: '123456',
        username: 'admin'
    }

    // function getLogin(objs) {
    axios({
            url: "http://39.97.105.222:8888/api/private/v1/login",
            data: {
                password: '123456',
                username: 'admin'
            },
            method: 'POST'
        }).then(
            function(response) {
                console.log(response);
            },
            function(error) {
                console.log(error);
            }
        )
        // }
        // getLogin(obj);
</script>

</html>